package com.gugee.ins.common.dal.service.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * ServiceConfig
 * @author Huangxin
 */
@Configuration
@Getter
@Setter
public class ServiceConfig {
    /**
     * 校验账户 是否异常 接口睡眠时间
     */
    @NacosValue(value="${ins.spider.service.sleep.uid4Check.milliseconds:1}", autoRefreshed = true)
    int spiderServiceUid4CheckSleepSecond;

    /**
     * 是否开启校验账户
     * 0 关闭
     * 1 开启
     */
    @NacosValue(value="${ins.spider.service.check.uid.use:0}", autoRefreshed = true)
    int spiderServiceCheckUidUse;

    /**
     * insBlogger 采集uid接口发现body 为 null时 异常账户录入redis kafka topic
     */
    @Value(value="${kafka.topics.insBloggerAccountUnusual.online}")
    String insBloggerAccountUnusualOnlineTopic;

    /**
     * insBlogger 采集uid接口成功 kafka topic
     */
    @Value(value="${kafka.topics.insBloggerAccountNormal.online}")
    String insBloggerAccountNormalOnlineTopic;
}
